package dao;

import java.util.ArrayList;
import java.util.List;

public class OperationResult {

	private boolean success;
	
	private List<String> errorMessages;
	
	public OperationResult()
	{
		success = true;
		errorMessages = new ArrayList<String>();
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public List<String> getErrorMessages() {
		return errorMessages;
	}

	public void addError(String error)
	{
		this.errorMessages.add(error);
	}
}
